<?php

namespace app\it\controller;

use app\admin\model\AdviseModel;
use cmf\controller\AdminBaseController;

class AdviseController extends AdminBaseController
{
    public function index() {
        $adviseModel = new AdviseModel();
        $lists = $adviseModel
            ->alias('advise')
            ->join('__USER__ user','advise.uid = user.id')
            ->field('advise.*,user.user_nickname')
            ->order('id desc')
            ->paginate();

        $this->assign('lists',$lists);
        $this->assign('page',$lists->render());
        return $this->fetch();
    }
}